package com.ruoyi.commodity.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.commodity.domain.CommodityOrder;

/**
 * 订单Mapper接口
 *
 * @author ruoyi
 * @date 2024-01-14
 */
public interface CommodityOrderMapper extends BaseMapper<CommodityOrder>
{
    /**
     * 查询订单
     *
     * @param id 订单主键
     * @return 订单
     */
    public CommodityOrder selectCommodityOrderById(String id);

    /**
     * 查询订单列表
     *
     * @param commodityOrder 订单
     * @return 订单集合
     */
    public List<CommodityOrder> selectCommodityOrderList(CommodityOrder commodityOrder);

    /**
     * 新增订单
     *
     * @param commodityOrder 订单
     * @return 结果
     */
    public int insertCommodityOrder(CommodityOrder commodityOrder);

    /**
     * 修改订单
     *
     * @param commodityOrder 订单
     * @return 结果
     */
    public int updateCommodityOrder(CommodityOrder commodityOrder);

    /**
     * 删除订单
     *
     * @param id 订单主键
     * @return 结果
     */
    public int deleteCommodityOrderById(String id);

    /**
     * 批量删除订单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCommodityOrderByIds(String[] ids);
}
